Example Analysis

Consider \(h(x) = \sqrt{3-x}\). First we evaluate at \(x=-4\). We see that \(h(-4)=\sqrt{7}\). We can also evaluate approximately in R.

h <- function(x){sqrt(3-x)}
h(-4)
## [1] 2.645751

We also evaluate \(h\) at \(x=5\). We see in the work below that the value \(h(5)\) is undefined. The warning we see in R is because \(h(5)\) is an undefined value.

h(5)
## Warning in sqrt(3 - x): NaNs produced
## [1] NaN